package com.k1998.mybatis.dao;

import com.k1998.mybatis.bean.AdminLogin;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IAdminLoginDao {
    public int getStudentByLogin (@Param("adminname") String adminname, @Param("password") String password);
    public List<AdminLogin> findAll(@Param("adminname") String adminname, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public int getCounts(@Param("adminname") String adminname);
    int deleteAdmin(AdminLogin adminLogin );

    int insertAdmin(AdminLogin adminLogin);

    AdminLogin detailAdmin(AdminLogin adminLogin);

    int updateStudent(AdminLogin adminLogin);
}
